package com.ea.eadp.nexus.test.pageDefinition.newconsole;

import org.openqa.selenium.WebDriver;
import org.testng.Assert;


public class UpdatePasswordPage extends ConsoleBasePage {
    public final static String passwordInputBox = "password";
    public final static String confirmPasswordInputBox = "confirmPassword";

    public UpdatePasswordPage(WebDriver driver) {
        super(driver, CreateOriginAccountPage.class, passwordInputBox);
    }

    public void enterPassword(String password) {
        log.info("Enter Password:" + password);
        sendInput(passwordInputBox, password);
        clickBlank("//div[@id='panel-password-upgrade']//span[@class='title']");
    }

    public void enterConfirmPassword(String password) {
        log.info("Enter Confirm Password:" + password);
        sendInput(confirmPasswordInputBox, password);
        clickBlank("//div[@id='panel-password-upgrade']//span[@class='title']");
        sendControllerKey('A');
    }
}
